package com.anjubao.parking.municipal.parkinglot.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 地磁管理信息
 * @author anjubao
 */
@ApiModel(value = "ParkingGeomagneticFrom", description = "地磁信息")
@Data
@ToString
public class ParkingGeomagneticForm implements Serializable {

    /**
     *停车场所在区域
     */
    @JsonProperty("districtId")
    @NotNull(message = "停车场所在区域id不能为空")
    @ApiModelProperty(value = "停车场所在区域Id", required = true)
    private Integer parkingLotDistrictId;

    /**
     *停车场所在区域名称
     */
    @ApiModelProperty(value = "停车场所在区域名称")
    private String parkingLotDistrictName;

    /**
     *停车场所在省份
     */
    @JsonProperty("provinceId")
    @NotNull(message = "停车场所在省份id不能为空")
    @ApiModelProperty(value = "停车场所在省份Id", required = true)
    private Integer parkingLotProvinceId;

    /**
     *停车场所在城市
     */
    @JsonProperty("cityId")
    @NotNull(message = "停车场所在城市id不能为空")
    @ApiModelProperty(value = "停车场所在城市Id", required = true)
    private Integer parkingLotCityId;

    /**
     *停车场编号
     */
    @NotNull(message = "停车场编号不能为空")
    @ApiModelProperty(value = "停车场编号", required = true)
    private String parkingLotCode;

    /**
     *停车场名称
     */
    @ApiModelProperty(value = "停车场名称")
    private String parkingLotName;

    /**
     *泊位编号
     */
    @NotNull(message = "泊位编号不能为空")
    @ApiModelProperty(value = "泊位编号", required = true)
    private String parkingLotSlotCode;

    /**
     *泊位名称
     */
    @ApiModelProperty(value = "泊位名称")
    private String parkingLotSlotName;

    /**
     * 机器码
     */
    @NotNull(message = "机器码不能为空")
    @ApiModelProperty(value = "机器码", required = true)
    private String machineNo;

    /**
     *设备名称
     */
    @NotNull(message = "设备名称不能为空")
    @ApiModelProperty(value = "设备名称", required = true)
    private String name;


}
